# Copyright (c) Martin Schweiger
# Licensed under the MIT License

# The target directory for plugin DLLs
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${ORBITER_BINARY_PLUGIN_DIR})

add_library(MFDTemplate SHARED
	MFDTemplate.cpp
	MFDTemplate.rc
)

target_include_directories(MFDTemplate
	PUBLIC ${ORBITER_SOURCE_SDK_INCLUDE_DIR}
)

target_link_libraries(MFDTemplate
	${ORBITER_LIB}
	${ORBITER_SDK_LIB}
)

add_dependencies(MFDTemplate
	${OrbiterTgt}
	Orbitersdk
)

set_target_properties(MFDTemplate
	PROPERTIES
	FOLDER SDKSamples
)
